<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
    }

    .tips {
        width: 0;
        height: 15px;
        background-color: red;
        margin: 100px auto;
        position: relative;
    }

    .tips span {
        position: absolute;
    }

    .tips span:first-child {
        width: 0;
        height: 0;
        border: 15px solid transparent;
        border-right-color: #08f;
        left: -15px;
    }

    .tips span:last-child {
        width: 200px;
        height: 30px;
        background-color: #08f;
        left: 15px;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        text-align: center;
        line-height: 30px;
        color: white;
        font-size: 14px;
        font-family: "黑体";
    }
</style>

<body>
    <div class="tips">
        <span></span>
        <span>人生何所求 暴富和自由</span>
    </div>
</body>

</html>